﻿using POCOS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL.Interfaces
{
    public interface IArticlesServices
    {
        IEnumerable<Article> GetArticle();

        Article GetArticleById(int id);

        void CreateArticle(Article Article);


        void UpdateArticle(Article Article);

        Article Find(int id);
        Auteur FindAuthor(int id);
        void DeleteArticle(int id);


        List<Article> GetArticles(int startIndex, int count, string sorting);
        List<Article> GetArticlesByFilter(string date, int auteurid, int startIndex, int count, string sorting);
        int GetArticleCountByFilter(string date, int id);
         int GetArticleCount();

        //used for the jqGrid
         string GetAuthorName(int id);
        void SaveArticle();

    }
}
